package com.dms.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dms.common.annotation.Excel;
import com.dms.common.core.domain.BaseEntity;

/**
 * 考勤对象 sys_attendance
 * 
 * @author ruoyi
 * @date 2021-03-27
 */
public class SysAttendance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考勤记录编号 */
    private Long id;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private Long userId;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private Long plantId;

    /** 打卡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "打卡时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date attendanceTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPlantId(Long plantId) 
    {
        this.plantId = plantId;
    }

    public Long getPlantId() 
    {
        return plantId;
    }
    public void setAttendanceTime(Date attendanceTime) 
    {
        this.attendanceTime = attendanceTime;
    }

    public Date getAttendanceTime() 
    {
        return attendanceTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("plantId", getPlantId())
            .append("attendanceTime", getAttendanceTime())
            .toString();
    }
}
